﻿<Page
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:ViewModels="clr-namespace:Jiuyong.ViewModels" x:Class="Jiuyong.Views.RehabFilePage" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="454"
	Title="RehabFilePage">

	<Page.DataContext>
		<ViewModels:RehabFileViewModel/>
	</Page.DataContext>

	<Grid x:Name="LayoutRoot">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"/>
			<RowDefinition Height="Auto"/>
			<RowDefinition/>
			<RowDefinition Height="Auto"/>
		</Grid.RowDefinitions>
		<FlowDocumentReader IsTwoPageViewEnabled="False" IsPageViewEnabled="False" ViewingMode="Scroll">
			<FlowDocument>
				<Paragraph><Run Text="　　"/><Hyperlink Command="MediaCommands.Play"><Run Text="扫描"/></Hyperlink><Run Text=" 文件夹：“"/><Hyperlink Command="ApplicationCommands.Open"><Run Text="{Binding InputPath, TargetNullValue=？}"/></Hyperlink><Run Text="”中的 所有 文件，查找其中包含文件“"/><Hyperlink><Run Text="？"/></Hyperlink><Run Text="”中的数据的文件。你可以进行 "/><Hyperlink Command="MediaCommands.Play"><Run Text="扫描"/></Hyperlink><Run Text=" 查找精确（二进制一致）包含代码的文件，或者直接 "/><Hyperlink><Run Text="清除"/></Hyperlink><Run Text=" 注入的代码。并 "/><Hyperlink><Run Text="查看"/></Hyperlink><Run Text=" 结果。"/></Paragraph>
				<Paragraph><Run Text="　　您可以将上面的设置 "/><Hyperlink Command="MediaCommands.Select"  CommandParameter="{Binding ElementName=LayoutRoot}"><Run Text="{Binding ConfigTitle, TargetNullValue=（默认）}"></Run></Hyperlink><Run Text=" "/><Hyperlink Command="ApplicationCommands.Save"><Run Text="保存"/><Run Text="{Binding SaveTime, StringFormat=（在 \{0:yyyy.MM.dd HH:mm:ss\} 最后修改）, TargetNullValue=（尚未）}"/></Hyperlink><Run Text=" 以便下次继续运行，或者现在就立刻 "/><Hyperlink Command="MediaCommands.Play"><Run Text="运行"/></Hyperlink><Run Text="，并查看 "/><Hyperlink><Run Text="结果"/></Hyperlink><Run Text="，或者"/><Hyperlink Command="ApplicationCommands.Delete"><Run Text="清空"/></Hyperlink><Run Text="结果。。"/></Paragraph>
			</FlowDocument>
		</FlowDocumentReader>
		<Grid Grid.Row="2">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*"/>
				<ColumnDefinition Width="*"/>
			</Grid.ColumnDefinitions>
			<ListBox ItemsSource="{Binding OutputLines}" Margin="{DynamicResource ItemMarginThickness}" BorderThickness="0" SelectedItem="{Binding SelectFile, Mode=OneWayToSource}" Background="{x:Null}"/>
			<ScrollViewer Grid.Column="1" Margin="{DynamicResource ItemMarginThickness}" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" >
				<TextBlock Text="{Binding FileContent}"/>
			</ScrollViewer>
		</Grid>
	</Grid>
</Page>
